import requests
import re
from lxml import etree
url='https://wenku.baidu.com/view/819af24569eae009581bec9c.html'
headers = {
            'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36'
}
# response=requests.get(url,headers=headers).text
# response=response.encode('utf-8').decode('unicode_escape')
# print(response)
#url_2='https://m.weibo.cn/status/4513543385500096'
url_2='https://m.weibo.cn/status/4513543385500096'
response=requests.get(url=url_2,headers=headers).text


print(response)
# texts=re.findall()
# text=re.findall('<span .*?>#(.*?)#</span></a>(.*?)<a .*>(.*?)</span>.*?</a>',response,re.S)
parse=etree.HTML(response)
a=parse.xpath('//*[@id="app"]/div[1]/div/div[2]/div/article/div/div/div[1]/text()[2]')

print(a)